package com.baizhi.dao;

import com.baizhi.entity.Auction;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AuctionDao {
    //拍卖商品的dao接口
    int insertAuction(Auction auction);
    int deleteAuction(Integer auctionId);
    int updateAuction(Auction auction);
    Auction selectById(Integer auctionId);
    List<Auction> selectAll(@Param("auctionName") String auctionName, @Param("auctionDesc") String auctionDesc,
                            @Param("auctionStartTime") Date auctionStartTime,@Param("auctionEndTime") Date auctionEndTime,
                            @Param("auctionStartPrice") Double auctionStartPrice);

}
